<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp"%>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/monitor/schedule.js"></script>
</head>
<body>

<%--工具栏--%>
<div id="schedule_toolbar">
    <shiro:hasPermission name="schedule:add">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" id="add">添加</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="schedule:edit">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" id="edit">编辑</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="schedule:resume">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" id="resume">恢复</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="schedule:pause">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true" id="pause">暂停</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="schedule:del">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" id="remove">删除</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="schedule:run">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" id="run">立即执行</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="schedule:detail">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" id="detail">查看日志</a>
    </shiro:hasPermission>

    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" id="reload">刷新</a>
    <input type="text" name="keyword" style="width: 200px; height: 30px;padding-left: 5px;">
    <a class="easyui-linkbutton" iconCls="icon-search" id="searchbtn">查询</a>
</div>

<%--定时任务列表--%>
<table id="schedule_data_grid"></table>

<%--定时任务日志对话框--%>
<div id="schedule_log_dialog">
    <%--工具栏--%>
    <div id="schedule_log_toolbar">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" id="reloadLog">刷新</a>
        <input type="text" id="keywordLog" name="keyword" style="width: 200px; height: 30px;padding-left: 5px;">
        <a class="easyui-linkbutton" iconCls="icon-search" id="searchbtnLog">查询</a>
    </div>
    <%--定时任务日志列表--%>
    <table id="schedule_log_data_grid"></table>
</div>


<%--定时任务对话框--%>
<div id="schedule_dialog">
    <form id="scheduleForm">
        <%--添加一个隐藏域--%>
        <input type="hidden" name="id">
        <input  type="hidden" name="enabled">
        <table align="center" style="border-spacing: 0px 10px">
            <tr>
                <td>bean名称:</td>
                <td><input type="text" name="beanName"></td>
            </tr>
            <tr>
                <td>参数:</td>
                <td><input type="text" name="params"></td>
            </tr>
            <tr>
                <td>cron表达式:</td>
                <td><input type="text" name="cronExpression"></td>
            </tr>
            <tr>
                <td>备注:</td>
                <td><input type="text" name="remark"></td>
            </tr>
        </table>
    </form>

</div>

</body>
</html>
